import 'package:flutter/material.dart';
import 'package:we_chat_app/const.dart';
import 'package:we_chat_app/my_cell.dart';

class DiscoverPage extends StatefulWidget {

  @override
  State createState() {
    return DiscoverPageState();
  }
}

class DiscoverPageState extends State<DiscoverPage> {

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: const Text('发现'),
        backgroundColor: Colors.white,
        elevation: 0,
        centerTitle: true,
      ),
      body: Container(
        height: 800,
        color: contextColor,
        child: ListView( children: const [
          SizedBox(height: 1,),
          MyCell(image: 'images/minsu.png', title: '朋友圈', subTitle: '', subImage: ''),
          SizedBox(height: 15),
          MyCell(image: 'images/saoma.png', title: '扫一扫', subTitle: '', subImage: ''),
          SizedBox(height: 1),
          MyCell(image: 'images/shoujichongzhi.png', title: '摇一摇', subTitle: '', subImage: ''),
          SizedBox(height: 15),
          MyCell(image: 'images/minyuan.png', title: '购物', subTitle: '', subImage: 'images/minsu.png'),
          SizedBox(height: 1),
          MyCell(image: 'images/游戏.png', title: '游戏', subTitle: '', subImage: ''),
          SizedBox(height: 10),
        ]),
      ),
    );
  }
}
